#ifndef FILECLASS_H
#define FILECLASS_H
#include <cstdio>
#include <stdexcept>
using namespace std;
class FileClass{
private:    
    FILE* f;
public:
    struct FileClassError:runtime_error
    {
        FileClassError(const char* msg):runtime_error(msg){

        }
    };

    FileClass(const char* fname,const char* mode = "r");
    ~FileClass();
    FILE* fp();
};
#endif
